package nl.altenpts.net.broker;

import java.security.PublicKey;

/**
 * Handler interface for incoming signed messages.
 * 
 * @author fabian
 *
 */

public interface SignedMessageHandler {
	
	/**
	 * Callback method to handle incoming signed messages. The signature of the
	 * incoming message has been verified with key. The position of the payload
	 * of message has been updated past the supplied public key and signature. 
	 * 
	 * 
	 * @param message The actual message
	 * @param key The public key with which the message has been verified.
	 */
	public void onIncoming(IncomingMessage message, PublicKey key);

}
